<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css"/>
	</head>
	<body>
		<div class="am-g">
			 {include file='../Common/hy_header.html'}
			 	
      <div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
            <div class="am-btn-group am-btn-group-xs">
              <button data-id="addform" data-href="index.php?g=admin&m=forms&a=add_word&id={$id}" type="button" class="am-btn am-btn-default hy-js-href"><span class="am-icon-plus"></span> 添加表单字段</button>
            </div>

            <div class="am-form-group am-margin-left am-fl">
            </div>
          </div>
        </div>
      </div>
      <div class="am-u-md-3 am-cf">
        <div class="am-fr">
          
        </div>
      </div>
      
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
                <th class="table-check"></th>
                <th class="table-id">ID</th>
                <th class="table-title">字段名</th>
                <th class="table-date">字段</th>
                <th class="table-date">类型</th>
                <th class="table-date">必填</th>
                <th class="table-date">列表</th>
                <th width="80px" class="table-author">排序</th>
                <th class="table-set">操作</th>
              </tr>
          </thead>
          <tbody>
          	 {foreach from=$list item=art}
            <tr>
              <td></td>
              <td>{$art.id}</td>
              <td><a href="#">{$art.name}</a></td>
              <td>{$art.data}</td>
              <td>{$art.field_type}</td>
              <td>{if $art.status eq 0} 否 {elseif $art.status eq 1} 是 {/if}</td>
              <td>{if $art.is_list eq 0} 否 {elseif $art.is_list eq 1} 是 {/if}</td>
              <td><input class="hy-js-order hy-w-50" data-id="{$art.id}" data-action="ordering" type="text"  value="{$art.ordering}" /></td>
              <td>
                <div class="am-btn-toolbar">
                  <div class="am-btn-group am-btn-group-xs">
                  <button data-id="edit_word_{$art.id}" data-title="{$art.name}" data-href="index.php?g=admin&m=forms&a=edit_word&id={$art.id}" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-pencil-square-o"></span> 编辑</button>
                  <button data-param ="{ url:'index.php?g=admin&m=forms&a=del_word&id={$art.id}',hide:4}" class="am-btn am-btn-default am-btn-xs am-text-danger hy-js-del"><span class="am-icon-trash-o"></span> 删除</button>
                  </div>
                </div>
              </td>
            </tr>
             {/foreach} 
          </tbody>
        </table>
          <div class="am-cf">

  <div class="am-fr">
  {$page}
  </div>
</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
   {include file='../Common/hy_footer.html'}
	</body>
</html>
